package com.ruoyi.system.fallbackFactory;


import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.db.domain.system.dto.AccountDetailsDTO;
import com.ruoyi.system.fallbackFactory.impl.RemoteSystemAppFallbackFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * System App 服务
 */
@FeignClient(contextId = "remoteSystemAppService", value = ServiceNameConstants.SYSTEM_APP_SERVICE, fallbackFactory = RemoteSystemAppFallbackFactory.class)
public interface RemoteSystemAppService {

    /**
     * 新增账户明细
     */
    @ApiOperation(value = "新增账户明细")
    @PostMapping("/configinit/insertAccountDetails")
    AjaxResult insertAccountDetails(@RequestBody AccountDetailsDTO accountDetailsDTO, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
    /**
     * 初始化拼团数据
     */
    @ApiOperation(value = "初始化拼团数据")
    @PostMapping("/configinit/groupInitCacheInit")
    AjaxResult groupInitCacheInit(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
